<style>
.fui-navbar .cartbtn {padding-right:0.3rem;background:#fff;opacity:1}
.fui-navbar .buybtn  {padding-left:0.3rem;background:#fff}
.fee-tag-nav, .fee-tagup-nav, .fee-disabled-nav {border-radius:1rem;height:2rem;line-height:2rem;color:#fff;width:100%;font-weight:400;font-size:0.7rem;margin:0.2rem 0;padding:0 0.2rem}
.fee-tagup {background:{{main.syscolor || 'red'}};color:#fff;width:auto;font-weight:400;font-size:0.55rem}
.fee-tag-nav {background:{{main.syscolor || 'red'}}; opacity: 0.58;}
.fee-tagup-nav {background:{{main.syscolor || 'red'}};}
</style>
<div class='fui-page fui-page-current member-log-page'>
    <div class='fui-content'>
		<div style="padding:0 0.5rem">
		<div style="padding:0.5rem 0">
			<div class='title'>
					<span class="bold">支付流水</span>
					<span class="r-f"><div href="javascript:" ng-click="access_json('/kai//pay_id=all');" class="jylabel jylabel-success">合并开票</div></span>
			</div>
			<div class='title'>
					<span class="label label-warning">未开票金额：{{pagedata.nofee || 0.00}}</span>
					<span class="label label-success">已开票金额：{{pagedata.isfee || 0.00}}</span>
			</div>
		</div>
		<div class="fui-tab fui-tab-danger">
				<a ng-class="{'external active':pagedata.params.ispiao == '0'}" href="javascript:" ng-click="pagedata.params.ispiao='0';tool.get_list('jy_invoice/member.paylog/list/',true);">待开票</a>
				<a ng-class="{'external active':pagedata.params.ispiao == '1'}" href="javascript:" ng-click="pagedata.params.ispiao='1';tool.get_list('jy_invoice/member.paylog/list/',true);">已开票</a>
		</div>
        <div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
            <i class='fa fa-comment-o'></i><br/>暂时没有任何记录!
        </div>
        <div class='fui-list-group container' ng-show="pagedata.list.length>0" >
			<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
				<div class="fui-list-inner">
					<div class='title'>
						<span class="label label-success">{{item.pay_typetitle}}</span>
						<span class="red" style="margin-left:0.3rem">￥{{item.fee}}</span>
						<span class="gray" style="margin-left:0.3rem;font-size:0.65rem">{{item.title}}</span>
					</div>
					
					<div ng-if="item.di_fee>0" class='gray'>抵扣:{{item.di_fee}}</div>
					<div class='gray' style="font-size:0.65rem">流水号:{{item.tid}}</div>
					<div class='gray' style="font-size:0.65rem">{{item.createtime}}</div>
				</div>
				<div class='fui-list-angle'>
					<div ng-if="item.piaotime" class='red' style="font-size:0.65rem">申请:{{item.piaotime}}</div>
					<div ng-if="item.ispiao!=1" class='red'>{{item.statustitle}}</div>
					<div ng-if="item.ispiao!=1" href="javascript:" ng-click="access_json('/kai//pay_id='+item.id);" class="jylabel jylabel-success">开票</div>
				</div>
			</div>
		</div>
		 </div>
    </div>
</div>
<div class='fui-navbar'>
	<a href="javascript:;" class="nav-item btn buybtn"  ng-click="access_json(pagedata.backurl);">
		<div class="fee-tagup-nav">
			<< 返回页面
		</div>
	</a>
</div>
<script>
scope.tool.get_list('jy_invoice/member.paylog/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_invoice/member.paylog/list/');
}
</script>